<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}123456</text>
		</view>
		<view class="" v-for="item in videoData" @click="goPlay(item.vid)">

				{{item.vname}}

		</view>
	</view>
</template>

<script setup>
	import {
		loginApi,
		getVideoRecordApi,
		getUserInfoApi,
		getVideoDramaIndexRecommedApi,
		getSortDetailApi
	} from '@/api/apis.js'
	import {login} from '@/utils/login.js'
	const title = ref('我是表题1')
	const videoData = ref([])
	onLoad(async ()=>{
		await login()
		const res = await getVideoRecordApi()
	})
	const getSortDetail = async ()=>{
		const {data} = await getSortDetailApi({})
		console.log('clogvar: ',data);
			videoData.value = data.list

	}
	//进入播放页
	const goPlay = (vid)=>{
		uni.navigateTo({
			url:'/pages/play/play?vid='+vid
		})
	}
	getSortDetail()


</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
